package ltu.temp;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;

public class LtuTempGrafActivity extends Activity {

	//Your member variable declaration here

	// Called when the activity is first created.
	@Override
	public void onCreate(Bundle savedInstanceState) {
		
		  super.onCreate(savedInstanceState);
	      setContentView(R.layout.grafview); 
		
		//Your code here
	}
	
	 public void showGrafMonth(View view){
		 
		  LoaderImageView graf = (LoaderImageView)findViewById(R.id.grafimage);
		  graf.setImageDrawable("http://marge.campus.ltu.se/temp/temp_month.png");
	  }
	  
	  public void showGrafday(View view){
			 
		  LoaderImageView graf = (LoaderImageView)findViewById(R.id.grafimage);
		  graf.setImageDrawable("http://marge.campus.ltu.se/temp/temp_today.png");
	  }

	  public void viewHome(View view){
			 
		  finish();  
	  }

	}